<?php
    $api_set = empty($bank_info['Bank']['app_id']) ? false: true;
    $cur_action = $this->params['action'];
?>
<ul>
    <li class="<?php echo ($cur_action == 'admin_users') ? 'active-li-menu' : ''; ?>">
        <a href="<?php echo $this->Html->url(array('action' => 'admin_users')); ?>"><i class="icon-home icon-2x"></i></a>
        <span>
            <a href="<?php echo $this->Html->url(array('action' => 'admin_users')); ?>">Users</a>
            <p>Manage User Accounts</p>
        </span>
    </li>
    <li class="<?php echo ($cur_action == 'admin_branches') ? 'active-li-menu' : ''; ?>">
        <a href="<?php echo $this->Html->url(array('action' => 'admin_branches')); ?>"><i class="icon-list icon-2x"></i></a>
        <span>
            <a href="<?php echo $this->Html->url(array('action' => 'admin_branches')); ?>">Bank Branches</a>
            <p>Manage Branches</p>
        </span>
    </li>
    <?php
        if($api_set){
    ?>
    <li class="<?php echo ($cur_action == 'admin_api_settings') ? 'active-li-menu' : ''; ?>">
        <a href="<?php echo $this->Html->url(array('action' => 'admin_api_settings')); ?>"><i class="icon-list icon-2x"></i></a>
        <span>
            <a href="<?php echo $this->Html->url(array('action' => 'admin_api_settings')); ?>">Configure API</a>
            <p>Update Api ID,Key and Salt</p>
        </span>
    </li>
    <?php
        }
    ?>
    <!--<li>
        <a href="<?php echo $this->Html->url(array('action' => 'editprofile')); ?>"><i class="icon-user icon-2x"></i></a>
        <span>
            <a href="<?php echo $this->Html->url(array('action' => 'editprofile')); ?>">Edit Profile</a>
            <p>Update your username, password etc.</p>
        </span>
    </li>-->
</ul>